package com.springboot.autoconfigure.oss.service.impl.ext;

import com.springboot.autoconfigure.oss.config.OssConfigPropertis;
import com.springboot.autoconfigure.oss.config.WebdavConfigPropertis;
import com.springboot.autoconfigure.oss.model.FileUploadStatus;
import com.springboot.autoconfigure.oss.service.impl.WebDavApiServiceImpl;

/**
 * 坚果云 webdav适配
 * @author zehua
 * @date 2023/4/2811:48
 */
public class JianguoWebDavApiServiceImpl extends WebDavApiServiceImpl{


    public JianguoWebDavApiServiceImpl(WebdavConfigPropertis webdavConfigPropertis, OssConfigPropertis ossConfigPropertis) {
        super(webdavConfigPropertis, ossConfigPropertis);
    }

    @Override
    public void getUploadUrl(FileUploadStatus fileUploadStatus, String uploadResponseInfo) {
        fileUploadStatus.setUrl(uploadResponseInfo);
    }

    @Override
    public FileUploadStatus findFileByKey(String fileKey) {
        return super.findFileByKey(fileKey);
    }
}
